|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.issue.Objective
negotiator.issue.Issue
negotiator.issue.IssueInteger
public class IssueInteger
Specific type of issue which specifies an integer range [min, max]. An example is the price of a car, assuming that the price can only be specified in whole euro's. Assumption 1: integer-valued issues have a fixed range, with a lower and upper bound. Assumption 2: value ranges for issue are shared between agents. Assumption 3: step size for integer valued issue is 1.
| Constructor Summary | |
|---|---|
IssueInteger(java.lang.String name,
int issueNumber,
int min,
int max)
Create a new issue issue given the name of the issue, its unique ID, and the value range [min, max]. |
|
IssueInteger(java.lang.String name,
int issueNumber,
int min,
int max,
Objective objParent)
Create a new issue issue given the name of the issue, its unique ID, its parent, and the value range [min, max]. |
|
| Method Summary | |
|---|---|
boolean |
checkInRange(Value val)
Method to check if the given value is in the range specified by the issue. |
java.lang.String |
convertToString()
|
int |
getLowerBound()
|
ISSUETYPE |
getType()
This method is added for convenience. |
int |
getUpperBound()
|
boolean |
setLowerBound(int lowerbound)
|
boolean |
setUpperBound(int upperbound)
|
negotiator.xml.SimpleElement |
toXML()
Returns a SimpleElement representation of this issue. |
| Methods inherited from class negotiator.issue.Issue |
|---|
addChild |
| Methods inherited from class negotiator.issue.Objective |
|---|
children, equalContents, equals, getAllowsChildren, getChildAt, getChildCount, getChildren, getChildWithID, getDescription, getHighestObjectiveNr, getIndex, getName, getNumber, getObjective, getParent, getPath, getPreorderEnumeration, getPreorderIssueEnumeration, getPreorderObjectiveEnumeration, getSiblings, getUserObject, hashCode, insert, isIssue, isLeaf, isObjective, isParent, remove, remove, removeFromParent, setDescription, setName, setNumber, setParent, setUserObject, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IssueInteger(java.lang.String name,
int issueNumber,
int min,
int max)
name - of the issue.issueNumber - uniqueID of the isue.min - minimum value of the range of values.max - maximum value of the range of values.
public IssueInteger(java.lang.String name,
int issueNumber,
int min,
int max,
Objective objParent)
name - of the issue.issueNumber - uniqueID of the isue.min - minimum value of the range of values.max - maximum value of the range of values.objParent - parent objective of the issue.| Method Detail |
|---|
public boolean checkInRange(Value val)
Issue
checkInRange in class Issueval - to be checked.
public final int getLowerBound()
public final int getUpperBound()
public boolean setUpperBound(int upperbound)
upperbound - to which the upperbound of the value range must be set.
public boolean setLowerBound(int lowerbound)
lowerbound - to which the lowerbound of the value range must be set.
public negotiator.xml.SimpleElement toXML()
toXML in class Issuepublic ISSUETYPE getType()
Objective
getType in class Issuepublic java.lang.String convertToString()
convertToString in class Issue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||